package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FeedStateRecordMapper;
import com.ruoyi.system.domain.FeedStateRecord;
import com.ruoyi.system.service.IFeedStateRecordService;

/**
 * 投喂情况记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-17
 */
@Service
public class FeedStateRecordServiceImpl implements IFeedStateRecordService 
{
    @Autowired
    private FeedStateRecordMapper feedStateRecordMapper;

    /**
     * 查询投喂情况记录
     * 
     * @param id 投喂情况记录主键
     * @return 投喂情况记录
     */
    @Override
    public FeedStateRecord selectFeedStateRecordById(Long id)
    {
        return feedStateRecordMapper.selectFeedStateRecordById(id);
    }

    /**
     * 查询投喂情况记录列表
     * 
     * @param feedStateRecord 投喂情况记录
     * @return 投喂情况记录
     */
    @Override
    public List<FeedStateRecord> selectFeedStateRecordList(FeedStateRecord feedStateRecord)
    {
        return feedStateRecordMapper.selectFeedStateRecordList(feedStateRecord);
    }

    /**
     * 新增投喂情况记录
     * 
     * @param feedStateRecord 投喂情况记录
     * @return 结果
     */
    @Override
    public int insertFeedStateRecord(FeedStateRecord feedStateRecord)
    {
        return feedStateRecordMapper.insertFeedStateRecord(feedStateRecord);
    }

    /**
     * 修改投喂情况记录
     * 
     * @param feedStateRecord 投喂情况记录
     * @return 结果
     */
    @Override
    public int updateFeedStateRecord(FeedStateRecord feedStateRecord)
    {
        return feedStateRecordMapper.updateFeedStateRecord(feedStateRecord);
    }

    /**
     * 批量删除投喂情况记录
     * 
     * @param ids 需要删除的投喂情况记录主键
     * @return 结果
     */
    @Override
    public int deleteFeedStateRecordByIds(Long[] ids)
    {
        return feedStateRecordMapper.deleteFeedStateRecordByIds(ids);
    }

    /**
     * 删除投喂情况记录信息
     * 
     * @param id 投喂情况记录主键
     * @return 结果
     */
    @Override
    public int deleteFeedStateRecordById(Long id)
    {
        return feedStateRecordMapper.deleteFeedStateRecordById(id);
    }
}
